<?php


namespace app\back\controller;


use app\back\model\GoodsModel;
use app\middleware\BackAuth;
use think\Request;
use think\response\Json;

class Goods
{
    protected $middleware = [BackAuth::class];

    /**获取添加编辑额外信息
     * @param Request $request
     * @return Json
     */
    public function getOther(Request $request)
    {
        // 逻辑处理
        return GoodsModel::getOther($request->info);
    }

//`ot_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '市场价',
//`price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '卖价',
//`sort` smallint(11) NOT NULL DEFAULT '0' COMMENT '排序',
//`sales` mediumint(11) unsigned NOT NULL DEFAULT '0' COMMENT '销量',
//`stock` mediumint(11) unsigned NOT NULL DEFAULT '0' COMMENT '库存',
//`is_hot` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否热卖',
//`is_new` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否新品',
//`is_good` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否优品推荐',
}